<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
	<a href="04打开关闭窗口.html">跳转</a>
	<button>前进</button>
	<script type="text/javascript">
		//历史记录 history 必须在产生浏览记录的情况下才可以使用
		//前进后退


		//前进
		var btn = document.querySelector('button')
		btn.onclick = function(){
			history.forward()
			//history.go(1)
		}
		
		//后退
		// history.back()
		// history.go(-1)
	</script>
</body>
</html>